import request from '@/utils/request'

// 查询基金协议列表
export function listFundAgreement(query) {
  return request({
    url: '/wfForm/fundAgreement/list',
    method: 'get',
    params: query
  })
}

// 查询基金协议详细
export function getFundAgreement(id) {
  return request({
    url: '/wfForm/fundAgreement/' + id,
    method: 'get'
  })
}

// 保存基金协议
export function saveFundAgreement(data) {
  return request({
    url: '/wfForm/fundAgreement/save',
    method: 'post',
    data: data
  })
}

// 删除基金协议
export function delFundAgreement(id) {
  return request({
    url: '/wfForm/fundAgreement/' + id,
    method: 'delete'
  })
}

// 导出基金协议
export function exportFundAgreement(query) {
  return request({
    url: '/wfForm/fundAgreement/export',
    method: 'get',
    params: query
  })
}

// 根据流程节点ID初始化记录
export function getByWfNodeId(wfNodeId) {
  return request({
    url: '/wfForm/fundAgreement/getByWfNodeId/' + wfNodeId,
    method: 'get'
  })
}

// 删除出资人列表
export function delFundAgreementLp(id) {
  return request({
    url: '/wfForm/fundAgreement/Lp/' + id,
    method: 'delete'
  })
}

